package com.cl.roadshow.zookeeper.chapter05.zkclient;

import org.I0Itec.zkclient.ZkClient;

//使用ZkClient创建节点
public class Create_Node_Sample {

 public static void main(String[] args) throws Exception {
 	ZkClient zkClient = new ZkClient("domain1.book.zookeeper:2181", 5000);
     String path = "/zk-book/c1";
     zkClient.createPersistent(path, true);
 }
}